package org.sakila.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sakila.entities.Film;

import java.util.List;

@Mapper
public interface SakilaDao extends BaseMapper<Film> {
    public Film getFilmById(@Param("id") Long id);
    public List<Film> getFilms(@Param("start")  Integer start, @Param("size") Integer size);
    public int createFilm(Film film);
}
